package com.tyl.service.impl;

import com.tyl.entity.Menu;
import com.tyl.mapper.MenuMapper;
import com.tyl.service.IMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 菜单管理 服务实现类
 * </p>
 *
 * @author 汤云龙
 * @since 2022-03-17
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements IMenuService {

    @Override
    public List<Menu> selectByMenu(int uId) {
        return baseMapper.selectByMenu(uId);
    }

    @Override
    public List<Menu> selectByMenuId(int uId) {
        return baseMapper.selectByMenuId(uId);
    }
}
